<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>前台管理--建议中心管理</title>
<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${ctx}/script/common/common.js"></script>
<script type="text/javascript">
window.onload=function(){
//获取条件是否有回复
var isReply=document.getElementById("isReplyNull");
 var top;
 if(isReply.value==0){//如果显示没有回复的
    top=document.getElementById("divtop1");
 }else{//如果显示有回复的
    top=document.getElementById("divtop2");
 }
 //显示相应的标签
 top.style.display="";
}
</script>
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
</head>
<body>
<html:form action="/others/messageManage" method="post">
<input type="hidden" name="method" value="list"/>
<input type="hidden" name="isReplyNull" id="isReplyNull" value="${isReplyNull}"/>
<div id="divtop2" style="display:none;padding:7px 0px 7px 10px">建议中心内容列表(管理员已回复内容)&nbsp;&nbsp;---&nbsp;&nbsp;查看&nbsp;&nbsp;&nbsp;<a href="${ctx}/others/messageManage.do?method=list&isReplyNull=0">未回复建议中心内容列表</a></div>
<div id="divtop1" style="display:none;padding:7px 0px 7px 10px">建议中心内容列表(管理员未回复内容)&nbsp;&nbsp;---&nbsp;&nbsp;查看&nbsp;&nbsp;&nbsp;<a href="${ctx}/others/messageManage.do?method=list&isReplyNull=1">已回复建议中心内容列表</a></div>

<table width="100%" align="center" >
	 <tr>
	    	<TH class="td_01" height="25px">标题</TH>	    	
	    	<TH class="td_01">内容</TH>
	    	<TH class="td_01">E-mail</TH>
	    	<TH class="td_01">发布日期</TH>
	    	<TH class="td_01">作者昵称</TH>
			<TH class="td_01">操作</TH>
	    </tr>
	<logic:present name="MessageRange">
		<logic:iterate id="message" name="MessageRange" property="records" >
			<tr>
				<td class="td_03" width="120px">${message.title}</td>
				<td class="td_03">${message.content}</td>
				<td class="td_03" nowrap>${message.email}</td>
				<td class="td_03" nowrap>${message.publishDate}</td>
				<td class="td_03" nowrap>${message.nicky}</td>
				<td class="td_03" nowrap>
					<a href="${ctx}/others/messageManage.do?method=edit&message.id=${message.id}&isReplyNull=${isReplyNull}">回复</a>
				    &nbsp;&nbsp;&nbsp;
				    <a href="#"	onmousedown="if(confirm('是否删除？')==true) location.href='${ctx}/others/messageManage.do?method=delete&message.id=${message.id}&isReplyNull=${isReplyNull}'">删除</a></td>
			</tr>
		</logic:iterate>
	</logic:present>
	<tr>
		<td colspan="6" align="right">
			<%@ include file="/pages/safeai/jsp/common/page.jsp"%> &nbsp;&nbsp;&nbsp;&nbsp;		
		</td>
	</tr>
</table>
</html:form>
</body>
</html>